//
//  BaseModel.swift
//  CosClub
//
//  Created by iOS on 2020/4/23.
//  Copyright © 2020 ios. All rights reserved.
//

import Foundation
import HandyJSON

public struct BaseModel<T>: HandyJSON {
    public init() {
        message = nil
        code = 0
        data = nil
    }
    
    public var message: String?
    public var code: Int?
    public var data: T?
    public init(message: String? = nil, code: Int? = nil, data: T? = nil) {
        self.init()
        self.message = message
        self.code = code
        self.data = data
    }
}
